<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        a{
            display: inline-block;
            width: 120px;
            height: 50px;
            background-image: url(img/bg.png);
            font-size: 16px;
            color: white;
            text-decoration: none;
            text-align: center;
            line-height: 50px;
        }
        a:hover{
            background-image: url(img/bgc.png);
        }
    </style>
</head>
<body>
    <div>
        <a href="#">网站首页</a>
        <a href="#">网站首页</a>
        <a href="#">网站首页</a>
        <a href="#">网站首页</a>
        <a href="#">网站首页</a>
    </div>
</body>
</html>